package com.graduate.daydayup.room

import androidx.room.*

@Dao
interface NoteTypeDao {
    //如果是查询
    @Query("SELECT * FROM  NoteType ")
    fun getAllNotes(): MutableList<NoteType>?

    @Query("DELETE FROM NoteType ")
    fun deleteAllNotes()

    @Query("DELETE FROM NoteType WHERE id= :id")
    fun deleteAllById( id:String?)

    @Insert
    fun addNotes(noteType:NoteType)

    @Update
    fun updateNotes(noteType :NoteType)

    @Delete
    fun deleteByNotes(noteType :NoteType)
}